import request from '@/utils/request'
export function getCategoryName1() {
  return request({
    url: '/Inventory/add/getCategoryName1V',
    method: 'get'
  })
}
export function getCategoryName2() {
  return request({
    url: '/Inventory/add/getCategoryName2V',
    method: 'get'
  })
}

export function addProduct(data) {
  return request({
    url: '/Inventory/add/addProduct',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data:data
  })
}
export function addCategory1(data) {
  return request({
    url: '/Inventory/add/addCategory1',
    method: 'post',
    data:data
  })
}
export function addCategory2(data) {
  return request({
    url: '/Inventory/add/addCategory2',
    method: 'post',
    data:data
  })
}

export function addProductImg(data) {
  return request({
    url: '/Inventory/add/addProductImg',
    method: 'post',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    data:data
  })
}
